package org.br.erp.base.creditrecord.service;

import com.alibaba.fastjson.JSONObject;
import org.br.erp.base.creditrecord.entity.Scmcreditrecorditem;
import org.br.erp.base.creditrecord.entity.Scmcreditrecordattach;
import org.br.erp.base.creditrecord.entity.Scmcreditrecord;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 信用档案
 * @Author: jeecg-boot
 * @Date:   2024-03-26
 * @Version: V1.0
 */
public interface IScmcreditrecordService extends IService<Scmcreditrecord> {

	/**
	 * 添加一对多
	 *
	 * @param scmcreditrecord
	 * @param scmcreditrecorditemList
	 * @param scmcreditrecordattachList
	 */
	public void saveMain(Scmcreditrecord scmcreditrecord,List<Scmcreditrecorditem> scmcreditrecorditemList,List<Scmcreditrecordattach> scmcreditrecordattachList) ;
	
	/**
	 * 修改一对多
	 *
   * @param scmcreditrecord
   * @param scmcreditrecorditemList
   * @param scmcreditrecordattachList
	 */
	public void updateMain(Scmcreditrecord scmcreditrecord,List<Scmcreditrecorditem> scmcreditrecorditemList,List<Scmcreditrecordattach> scmcreditrecordattachList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	public Map creditCheck(JSONObject jsonObject);
	
}
